﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using Webtest_view.DbFunction;

namespace Webtest_view
{
    /// <summary>
    /// Summary description for Add
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Add : System.Web.Services.WebService
    {
        dbConnect con= new dbConnect();
 
        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }

        [WebMethod]
        public double double_count(double num1,double num2)

        {
           
            return num1+num2;
        }
    }
}
